package com.reggie.module.controller;

import com.reggie.common.ResultResponseVo;
import com.reggie.module.service.MSMService;
import io.swagger.annotations.Api;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

/**
 * @Author 早睡蛋
 * @Date 2022/9/26 20:54:52
 * @Desc: 邮箱验证码
 */
@RestController
@RequestMapping("/msm")
@CrossOrigin
@Slf4j
@Api(tags = "邮箱验证码管理")
public class MSMController {

    @Autowired
    private MSMService msmService;

    @PostMapping("/sendMsm")
    public ResultResponseVo sendMsm(@RequestParam(value = "phone") String phone){
        return msmService.sendMsm(phone);
    }


}
